-
Notifications
You must be signed in to change notification settings - Fork 26
Transaction.Timeout
property (#129)
#327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Transaction.Timeout
property (#129)
#327
Conversation
* Transaction.Timeout property * Optimize Transaction ctor * Optoimize Transaction * Optimize Transaction.Guid * Refactoring: PreDbCommandExecuting() method * Optimize Transaction.Outermost * Add missed cancellationToken
|
Yes, "On events" was our initial implementaion But after we implemented another feaure "SessionGuard" for detecting concurrent usage of Session, it had a conflict with |
It still conflicts with bunch of other cases. I hardly can allow this. It is very shady in terms of predictability. Maybe we can improve extendibility in a way that will allow you to implement it like a session service or something. What about sessionhandler replacement? |
As I understand you need some code which will work not in context of all sessions, like events do, but in context of one exact session. Am I right? |
I did not use SessionHandler, have to learn it. Regarding to Transaction.Timeout, we need to limit execution time of code like:
|
This property is useful for multi-command transactions.
Each
DbCommand.CommandTimeout
property is assigned to remaining time untilTransaction.Timestamp + Timeout
deadline.Also:
Transaction
class